import { Module } from '@nestjs/common';
import { AdminService } from 'src/service/admin.service';
import { AdminController } from 'src/admin/admin.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Admin } from 'src/entity/admin.entity';
import { JwtModule, JwtService } from '@nestjs/jwt';
import { LoggerService } from 'src/common/logger/logger.service';

@Module({
  controllers: [AdminController],
  providers: [AdminService, JwtService, LoggerService],
  imports: [
    TypeOrmModule.forFeature([Admin]),
    JwtModule.register({
      secret: process.env.ADMIN_SECRET,
    }),
  ],
})
export class AdminModule {}
